add_library(eez_ui INTERFACE)

target_include_directories(eez_ui
  INTERFACE
  ${CMAKE_CURRENT_LIST_DIR}
)

target_link_libraries(eez_ui
  INTERFACE
  lvgl
)

#  递归收集所有C源文件
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.c)

file(GLOB_RECURSE INCLUDE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.h)

target_sources(eez_ui
  INTERFACE
  ${SOURCES}
  ${INCLUDE_SOURCES}
)